package cards.service;

import cards.dao.AttendedCardActivityDao;
import cards.entity.AttendedCardActivity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class AttendedCardActivityService {

    @Autowired
    AttendedCardActivityDao attendedCardActivityDao;

    public List<AttendedCardActivity> findAttendedCardActivityByUsernameOrderedById(String username, String usertype) {
        if (usertype.equals("user"))
        {
//            AttendedCardActivity myActivity = attendedCardActivityService.findAttendedCardActivityById(Long.valueOf(id));
        }
        return attendedCardActivityDao.findAttendedCardActivityByUsernameOrderedById(username);
    }
    public AttendedCardActivity findAttendedCardActivityById(Long id) {
        return attendedCardActivityDao.findAttendedCardActivityById(id);
    }
}
